package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.DTO.DishDto;
import com.itheima.pojo.Dish;
import org.springframework.transaction.annotation.Transactional;

public interface IDishService extends IService<Dish> {
    @Transactional
    void saveDishWithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    @Transactional
    void updateDishWithFlavor(DishDto dishDto);

    @Transactional
    void deleteDishById(Long[] ids);


    void updateStatus(Integer id, Long[] ids);
}

